﻿namespace exnet.FileExplorer
{
    class Program
    {
        [System.STAThread]
        static void Main(string[] args)
        {
            System.Windows.Application app = new System.Windows.Application();
            Main main = new Main();

            // bind main TreeControl ItemsSource to Computer
            exnet.Explorer.Computer computer = new Explorer.Computer();

            System.Collections.Generic.List<Ui.Node> items = new System.Collections.Generic.List<Ui.Node>();
            items.Add(new Ui.Node(computer));

            string test = items[0].Name;

            //Assert.True(items[0].Count > 0);
            //Assert.True(items[0].Children.Count > 0);

            main.TreeControl.TreeView.ItemsSource = items;
            app.Run(main);
        }
    }
}
